﻿from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
from django.http import HttpResponseRedirect

admin.autodiscover()

urlpatterns = patterns(
    '',
    (r'^admin/(.*)', admin.site.root),
#    url(r'gallery/$', include('dcdjutils.gallery.urls')),
    url(r'gallery/', include('dcdjutils.gallery.urls')),
    
)

if settings.DEBUG == True:
    urlpatterns += patterns('', 
        (r'^s/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),)

